package com.erp.quertz;

import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Spring 整合 Quartz 的  Hello World!
 * @author dufy
 * @date 2017.02.26
 *
 */
@Slf4j
public class HelloWorldJob  implements Job  {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

       /* ImpCustomerService customerService = SpringUtil.getBean(ImpCustomerService.class);
        customerService.getCustomerAndUserAndSupplier();*/

//       System.out.println("This is a first spring combine quartz !");
//        System.out.println("Welcome to Spring_Quartz World!"+ new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) );
//        System.out.println("Let's begin ! \n \n");
    }
}
